home *** CD-ROM | disk | FTP | other *** search
- Option Explicit
-
- Sub Main ()
-
- ' Declare variables
- Dim XPos, YPos
-
-
- 'Show the from
- frmLoop3.Show
-
-
- Do While DoEvents()
-
- ' Set current position to center of the form
- frmLoop3.CurrentX = frmLoop3.ScaleWidth / 2
- frmLoop3.CurrentY = frmLoop3.ScaleHeight / 2
-
-
- ' Set size of dot
- frmLoop3.DrawWidth = frmLoop3.hsbSize.Value
-
- 'Set the point coordinates
- XPos = Rnd * frmLoop3.ScaleWidth
- YPos = Rnd * frmLoop3.ScaleHeight
-
- ' Draw the point
- frmLoop3.PSet (XPos, YPos), QBColor(Rnd * 15)
-
-
- Loop
-
-
- End Sub
-
-